<ion-view hide-nav-bar="true" title="首页">
    <ion-content>
        <div style="width: 100%;height: 300px;">
            <ion-slide-box on-slide-changed="slideChanged(index)" auto-play="true" slide-interval="3000" delegate-handle="slideimgs" does-continue="true">
                <ion-slide>
                    <div class="bg-one"></div>
                </ion-slide>
                <ion-slide>
                    <div class="bg-two"></div>
                </ion-slide>
                <ion-slide>
                    <div class="bg-three"></div>
                </ion-slide>
            </ion-slide-box>
        </div>
        <div>
            <div class="row">
                <div class="col col-center menu-div" ui-sref="classMenu.classInfo">
                    <i class="fa fa-users" aria-hidden="true"></i>
                    <p>班级信息</p>
                </div>
                <div class="col col-center menu-div" ui-sref="entrust.parentEntrustList">
                    <i class="fa fa-comments" aria-hidden="true"></i>
                    <p>家长嘱托</p>
                </div>
                <div class="col col-center menu-div" ui-sref="memberMenu.display">
                    <i class="fa fa-star" aria-hidden="true"></i>
                    <p>精彩瞬间</p>
                </div>
            </div>
            <div class="row">
                <div class="col col-center menu-div" ui-sref="classMenu.classNotice">
                    <i class="fa fa-users" aria-hidden="true"></i>
                    <p>班级公告</p>
                </div>
                <div class="col col-center menu-div" ui-sref="classMenu.classActivity">
                    <i class="fa fa-comments" aria-hidden="true"></i>
                    <p>班级活动</p>
                </div>
                <div class="col col-center menu-div" ui-sref="memberMenu.parentInfo({studentId:studentId})">
                    <i class="fa fa-user" aria-hidden="true"></i>
                    <p>家长信息</p>
                </div>
            </div>
        </div>
        <div class="item item-divider" style="line-height: 45px;">
            班主任留言
        </div>
        <div>
            <ul class="list">
                <li class="item item-icon-right" ng-repeat="item in vm.items | orderBy : 'createDate' track by $index">
                    <div>
                        <div class="data-content">
                            <div class="data-content" ng-show="{{item.msgType == 'audio'}}">
                                <audio src="{{item.msgAudioPath}}" controls></audio>
                            </div>
                            <div class="data-content" ng-show="{{item.msgType == 'text'}}">
                                <p ng-text-truncate="item.msgContent" ng-tt-chars-threshold="40" ng-tt-more-label="查看更多" ng-tt-less-label="收起"></p>
                            </div>

                        </div>
                        <div class="data-info">{{item.memberName}}&nbsp;&nbsp;{{item.createDate | date:'yyyy-MM-dd HH:mm:ss'}}</div>
                    </div>
                </li>
            </ul>
            <div class="load-more-btn" style="text-align: center;" ng-click="loadMoreEntrust()">
                <p>{{vm.loadMoreBtnStr}}</p>
            </div>
        </div>
    </ion-content>
</ion-view>